######                         ######
###  QMAKE BUILDER Configuration  ###
######                         ######

TARGET		= ./Builder
BUILD_PATH	= ./build

CONFIG(debug, debug|release):
{
	# Debug
#	CONFIG	+= console
	unix:OBJECTS_DIR	= $${BUILD_PATH}/debug/.obj/unix
	win32:OBJECTS_DIR	= $${BUILD_PATH}/debug/.obj/win32
	mac:OBJECTS_DIR		= $${BUILD_PATH}/debug/.obj/mac
	win32:UI_DIR		= ./
	unix:UI_DIR			= ./
	MOC_DIR				= $${BUILD_PATH}/debug/.moc
	RCC_DIR				= $${BUILD_PATH}/debug/.rcc
}else{
	# Release
	unix:OBJECTS_DIR	= $${BUILD_PATH}/release/.obj/unix
	win32:OBJECTS_DIR	= $${BUILD_PATH}/release/.obj/win32
	mac:OBJECTS_DIR		= $${BUILD_PATH}/release/.obj/mac
	win32:UI_DIR		= ./
	unix:UI_DIR			= ./
	MOC_DIR				= $${BUILD_PATH}/release/.moc
	RCC_DIR				= $${BUILD_PATH}/release/.rcc
}
DEPENDPATH	+= 	. \
				Src \
				Src/Forms \
				Src/Classes/MainWindow \
				Src/Classes/FileView \
				Src/Classes/Builder
				## For Zlib ##
				message("coin_")
				isEqual( USE_EMBEDDED_ZLIB, 1 ):
				{
					unix:DEPENDPATH		+=Src/Classes/Archiver/Quazip/zlib_GNU
					win32:DEPENDPATH	+=Src/Classes/Archiver/Quazip/zlib_GNU
				}
DEPENDPATH	+= 	Src/Classes/Archiver/Quazip 
	
INCLUDEPATH	+= 	. \
				Src \
				Src/Forms \
				Src/Classes/MainWindow \
				Src/Classes/FileView \
				Src/Classes/Builder

				## For Zlib ##
				isEqual( USE_EMBEDDED_ZLIB, 1 ):
				{
					unix:INCLUDEPATH	+=Src/Classes/Archiver/Quazip/zlib_GNU
					win32:INCLUDEPATH	+=Src/Classes/Archiver/Quazip/zlib_GNU
				}
INCLUDEPATH	+= Src/Classes/Archiver/Quazip \
	
# Input
HEADERS		= 	Src/Classes/MainWindow/mainwindow.h \
				Src/Classes/FileView/FileView.h \
				Src/Classes/Builder/Builder.h \
				Src/Classes/FileView/UpdateFile.h \
				Src/Classes/Archiver/InterfaceArchiver.h 
			
				## For Zlib ##
				isEqual( USE_EMBEDDED_ZLIB, 1 ):
				{
					unix:HEADERS	+=Src/Classes/Archiver/Quazip/zlib_GNU/*.h 
					win32:HEADERS	+=Src/Classes/Archiver/Quazip/zlib_GNU/*.h 
				}
HEADERS		+=	Src/Classes/Archiver/Quazip/*.h 

SOURCES		= 	Src/main.cpp \
				Src/Classes/MainWindow/mainwindow.cpp \
				Src/Classes/FileView/FileView.cpp \
				Src/Classes/Builder/Builder.cpp \
				Src/Classes/FileView/UpdateFile.cpp \
				Src/Classes/Archiver/InterfaceArchiver.cpp 
			
				## For Zlib ##
				isEqual( USE_EMBEDDED_ZLIB, 1 ):
				{
					unix:SOURCES	+=Src/Classes/Archiver/Quazip/zlib_GNU/*.c 
					win32:SOURCES	+=Src/Classes/Archiver/Quazip/zlib_GNU/*.c 
				}
SOURCES		+= 	Src/Classes/Archiver/Quazip/*.c \
				Src/Classes/Archiver/Quazip/*.cpp
	

FORMS		= 	Src/Forms/Frm_main.ui
RESOURCES	= 	Src/Forms/All_ressources.qrc
RC_FILE		= 	Src/mainicon.rc

QT			= 	core gui xml
